package com.kevin.server;

import java.sql.SQLException;

import javax.annotation.Resource;

import com.kevin.dao.IUserDao;
import com.kevin.userInfo.UserInfo;

public class UserServer {

	@Resource(name = "userDao")
	private IUserDao userDao;

	public void addUserInfo(UserInfo user) throws SQLException {
		userDao.saveUser(user);
	}

	public void editUserInfo(UserInfo user) throws SQLException {
		userDao.editUsre(user);
	}

	public void delUser(UserInfo user) throws SQLException {
		userDao.delUser(user);
	}

	public UserInfo getUserById(int id) throws SQLException {
		return userDao.getUserById(id);
	}
}
